import java.util.Scanner;

/**
 * @TODO
 * @Author xu
 * 2025/2/21
 */
public class work7 {public static void main(String[] args) {
    Scanner scanner = new Scanner(System.in);

    System.out.print("请输入一个整数：");
    int number = scanner.nextInt();

    int leftShift = number << 2;
    int rightShift = number >> 2;
    int unsignedRightShift = number >>> 2;

    System.out.println(number + "有符号 左移 2 位: " + leftShift);
    System.out.println(number + " 有符号右移 2 位: " + rightShift);
    System.out.println(number + " 无符号右移 2 位: " + unsignedRightShift);

}

}
